This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
You need to know what algorithm (cipher, mode, and padding) that they want the data encrypted with. You may also need to know what charset they expect the json data to be encoded with (UTF-8, UTF-16?) prior to encryption. If they didn't tell you these things, then I kind of wonder if they actually know what they're doing. And the fact that you have described this as "I can post this encrypted string to the other website for the to decrypt using my private key" also makes me suspcious, because it sounds backwards! They should not have your private key! Only you should know your private key, otherwise it's not private!
Also, it is actually unusual to encrypt data directly with a public key, unless the data is relatively small. In most applications, the public key is used to encrypt a randomly generated symmetric key, the symmetric key is then used to encrypt the application data, and then both the encrypted applicaton data and the encrypted symmetric key are transmitted.
-rich
Feedback response number WEBB9YVSL5 created by ~Ned Nimfanakonyoopsi on 07/29/2015